//
//  YLZYHErrorView.h
//  YiKaTongAPP
//
//  Created by dev on 2017/10/17.
//  Copyright © 2017年 YLZ-MAC. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^YLZYHNetReloadBlock)(void);

@interface YLZYHErrorView : UIView

@property(nonatomic,strong)UIView *mainView;

@property(nonatomic,strong)UIView *bgView;

@property(nonatomic,strong)UIImageView *errorImageView;

@property(nonatomic,strong)UILabel *errorLabel;

@property(nonatomic,strong)UIButton *reloadBtn;//重新加载按钮

@property(nonatomic,strong)YLZYHNetReloadBlock reloadBlock;

-(void)setReloadBlock:(YLZYHNetReloadBlock)reloadBlock;
-(void)setButtonTitle:(NSString *)btnTil withBlock:(YLZYHNetReloadBlock)reloadBlock;

-(void)initData;

-(void)createView;

-(void)addConstraint;

-(void)showView;

-(void)showViewInSuperview:(UIView *)superview;

-(void)dismissView;

@end
